package com.meals.system.dao;

import com.meals.system.entity.SystemUser;
import com.meals.system.util.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/5
 */
@Mapper
public interface SystemUserMapper {

    SystemUser selectByPrimaryKey(Long userId);

    SystemUser selectByLoginName(String loginName);

    SystemUser selectByLoginNameAndPassword(@Param("loginName") String loginName, @Param("password") String password);

    List<SystemUser> findSystemUserList(PageQueryUtil pageUtil);

    int getTotalSystemUser(PageQueryUtil pageUtil);

    int insertSelective(SystemUser record);

    int lockUserBatch(@Param("ids") Long[] ids, @Param("lockStatus") int lockStatus);

    int updateByPrimaryKeySelective(SystemUser record);

}
